@use "sass:color";
@use '../../vars';

.tracks_container {
  display: flex;
  flex: 1 1 auto;
  flex-flow: column;

  margin: 0 0.5rem;

  .header {
    margin-bottom: 1rem;

    font-size: 16px;
    font-variant: small-caps;
  }

  .expand_button {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    transition: vars.$short-duration;
    cursor: pointer;

    &:hover {
      background: color.adjust(vars.$background, $lightness: 5%);
    }
  }

  table {
    width: 100%;
  }

  thead {
    font-variant: all-small-caps;
    border-bottom: 1px solid vars.$background2;
    color: rgba(vars.$white, 0.5);
    font-size: 20px;
  }

  th {
    padding: 1rem;
    text-align: left;
  }
}

.add_button {
  text-align: left;
}

.track {
  transition: vars.$short-duration;
  cursor: pointer;

  &:hover {
    background: rgba(vars.$background2, 0.25);
  }

  &:last-child {
    td {
      border-bottom: none;
    }
  }

  td {
    padding: 1rem 1rem;
    border-bottom: 1px solid vars.$background2;
  }

  .track_number,
    .track_duration {
      text-align: center;
    }
}

.track_thumbnail {
  position: relative;
  box-sizing: content-box;
  padding: 0 !important;

  img {
    width: 3em;
    height: 3em;
    display: block;
    object-fit: cover;
  }
}

.track_row_buttons {
  width: 1px;
}
